package com.example.experiment4

class Card {
    var isFaceUp = false
    var isMatched = false
    var identifier: Int = 0

    override fun equals(other: Any?): Boolean {
        if (other is Card) {
            return identifier == other.identifier
        }
        return false
    }

    override fun hashCode(): Int {
        return identifier
    }
}